import Request from '@/axios/request'

export function getWorshipHymns(params) {
  return Request.get('worship-hymns', { params })
}

export function createWorshipHymn() {
  return Request.get('worship-hymns/create')
}

export function storeWorshipHymn(data) {
  return Request.post('worship-hymns', data)
}

export function updateWorshipHymn(id, data) {
  return Request.put(`worship-hymns/${id}`, data)
}

export function editWorshipHymn(id) {
  return Request.get(`worship-hymns/${id}/edit`)
}

export function destroyWorshipHymn(id) {
  return Request.delete(`worship-hymns/${id}`)
}

export function showWorshipHymn(id) {
  return Request.get(`worship-hymns/${id}`)
}
